<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<div id="gnb">
	<div>
		<sec:authentication property="principal" var="principal"/>
		<c:url value="/logout" var="logoutUrl"/>
		<c:url value="anonymous" var="anonymous"/>
		<c:if test="${!fn:contains(principal, anonymous)}">
			<a href="${logoutUrl}">Log out</a>
		</c:if>
	</div>
</div>